{extend name="public/base" /}

{block name="title"}<title>公告发布</title>{/block}

{block name="pjax_container"}
<style>


    .content-header>.breadcrumb>li {
        color: #999;
    }

    .content-header>.breadcrumb>.active {
        color: #666;
    }

    .content-header {
        height: 51px;

    }

    .btn-primary {
        background-color: #1890FF;
        color: #fff;
        border: none;
        border-radius: 6px !important;
        margin-left: 15px;
        padding: 5px 10px;
    }

    .box-primary {
        border-top-color: #ecf0f5 !important;
        border-top-width: 16px;

    }

    .btn-primary:hover {
        background-color: #1890FF;
        color: #fff;
        border: none;
        opacity: .9;
        border-radius: 6px !important;
    }

    .delete-one {
        background-color: ff4141 !important;
        margin-left: 15px;
        border-radius: 6px;
    }

    .sreachs {
        background-color: #1890FF;
        color: #fff;
        border: none;
        border-radius: 6px !important;
        margin-left: 15px;
        padding: 7px 15px;
    }

    .nav-tabs-custom {
        margin-bottom: 20px;
        background: #fff;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
        border-radius: 3px;
        margin-top: 16px;
    }

    tr>th,
    td {
        text-align: center;
    }

    label {
        margin-left: 10px;
    }
</style>
<section class="content-header">
  
    <ol class="breadcrumb">
        <li>任务大厅</li>
        <li class="active">公告大厅</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                {include file="form_search/search_lobby_notice" /}
                <div class="box-header with-border" style="padding: 0;padding-left: 10px;">
                    <div class="pull-left">
                        <a href="{:url('lobby')}" class="btn btn-sm task_nav_an"><i class="fa fa-save"></i> 任务大厅</a>
                        <a href="{:url('lobby_notice')}" class="btn btn-sm task_nav_an  task_nav_an_active"><i class="fa fa-save"></i> 公告大厅</a>
                    </div>
                </div>
                <div class="box-body table-responsive">
                    <table class="table table-bordered table-hover">
                        <tr>
                            <th>公告名称</th>
                            <th>截止时间</th>
                            <th>阅读奖分</th>
                            <th>阅读人数</th>
                            <th>阅读状态</th>
                        </tr>
                        {volist name="$list_a" id="v"}
                        <tr>
                            <td><a href="{:url('task/notice_info',['id'=>$v.id])}">{$v["name"]}</a></td>
                            <td>{:date('Y-m-d H:i:s',$v["end_time"])}</td>
                            <td>{$v["read_integral"]}分</td>
                            <td>{$v["count_sum"]}</td>
                            <td>{$v.b_status > 0 ? '已读': '未读'}</td>
                        </tr>
                        {/volist}
                    </table>
                </div>
                <div class="box-footer clearfix">
                    {$list->render()}
                </div>
            </div>
        </div>
    </div>
</section>
<script>
    $(function(){
        // 列表部分 全选
        $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
            checkboxClass: 'icheckbox_minimal-blue',
            radioClass: 'iradio_minimal-blue'
        });
        $('.checkbox-toggle').on('ifChecked', function(event){
            var _this = $(this);
            var _table = _this.closest('.table');
            _table.find("tr td input[type='checkbox']").iCheck("check");
        });
        $('.checkbox-toggle').on('ifUnchecked', function(event){
            var _this = $(this);
            var _table = _this.closest('.table');
            _table.find("tr td input[type='checkbox']").iCheck("uncheck");
        });
    });
</script>
{/block}
